home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Varsity Update 1998 August
/
SGI Varsity Update 1998 August.iso
/
dist
/
dist6.5
/
il_dev.idb
/
usr
/
include
/
il
/
ilRoi.h.z
/
ilRoi.h
Wrap
C/C++ Source or Header
|
1998-07-29
|
3KB
|
86 lines
#if 0
Copyright (c) 1991 SGI All Rights Reserved
THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI
The copyright notice above does not evidence any
actual or intended publication of such source code,
and is an unpublished work by Silicon Graphics, Inc.
This material contains CONFIDENTIAL INFORMATION that
is the property of Silicon Graphics, Inc. Any use,
duplication or disclosure not specifically authorized
by Silicon Graphics is strictly prohibited.
RESTRICTED RIGHTS LEGEND:
Use, duplication or disclosure by the Government is
subject to restrictions as set forth in subdivision
(c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 52.227-7013, and/or in similar
or successor clauses in the FAR, DOD or NASA FAR
Supplement. Unpublished- rights reserved under the
Copyright Laws of the United States. Contractor is
SILICON GRAPHICS, INC., 2011 N. Shoreline Blvd.,
Mountain View, CA 94039-7311
#endif
/*
The base class ilRoi defines the basis for ROI objects in IL.
*/
#ifndef _ilRoi_h_
#define _ilRoi_h_
#if defined(IL2_5_COMPAT)
#include <il/ilTile.h>
#endif
#include <ifl/iflTile.h>
#include <il/ilLink.h>
#include <il/ilTypes.h>
#include <il/ilMpManager.h>
#include <ifl/iflCoord.h>
enum ilRoiParam {
ilROIorientation = ilLinkParamLast<<1,
ilRoiParamLast = ilROIorientation
};
class ilRoiIter;
class ilImage;
class ilRoi : public ilLink {
public:
iflClassListDeclare
// external api: begin
virtual ~ilRoi() {}
// get/set ROI coordinate orientation
ilStatus setOrientation(iflOrientation ori)
{ orientation = ori; return setAltered(ilROIorientation); }
iflOrientation getOrientation()
{ resetCheck(); return orientation; }
// get the size of the ROI
void getSize(iflXYZint& size, iflOrientation orientation=iflOrientation(0));
// create and return an iterator, mapped to an image
virtual ilStatus createIter(ilMpNode* parent, ilRoiIter** iter, ilImage* im,
int x, int y, int z, int nx, int ny, int nz,
iflXYZint* offset, ilMpManager** pMgr=NULL)=0;
// external api: end
#if defined(IL2_5_COMPAT)
ilStatus setCoordSpace(iflOrientation ord)
{ return setOrientation(ord); }
ilCoordSpace getCoordSpace() { return getOrientation(); }
#endif
protected:
iflXYZint size;
iflOrientation orientation;
ilRoi() { setAllowed (ilROIorientation); orientation=iflOrientation(0); }
friend class ilRoiIter;
};
#endif